<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<html >
    <head>
        <meta name="description" content="URL encoding tutorial based on examples" />        
        <meta name="keywords" content="remka,encoding tutorial,encoding examples" />        
        <meta name="robots" content="index,follow" />         
        <title>Remka Encoding Web Application - URL</title>
        <link href="<c:url value="/css/style.css" />" rel="stylesheet" type="text/css" />
<script type="text/javascript">
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-55917358-1', 'auto');
  ga('send', 'pageview');

</script>      
    </head>
    <body>
        <header>
            <hgroup>
                <h1>Web application for encoding decoding</h1>
                <h1>of different set of characters</h1>
                <h2>Part of Remka tutorials</h2>
            </hgroup>
            <a href="#" title="Remka homepage"><img src="images/logo.png" alt="Remka Solutions" /></a></header>
        <article>
            <h1 style="font-size: ">Encoding / Decoding  URL</h1>
            <form:form modelAttribute="encodingForm" method="POST" action="url.htm">
                <label>Input Text</label>
                <br/>
                <form:textarea path="userInput" />
                <br/>
                <br/>
                <input type="submit" name="action" value="encode"/>
                <form:select path="encoding" items="${encodings}" />
                <input type="submit" name="action" value="decode"/>
                <br/>
                <br/>
                <label>Result:</label>
                <br/>
                <form:textarea path="generatedOutput" />     
                <br/>
                <h1 style="font-size: ">About URL encoding</h1>
                <label>Percent-encoding, also known as URL encoding, is a mechanism for encoding information in a Uniform Resource Identifier (URI) under certain circumstances. Although it is known as URL encoding it is, in fact, used more generally within the main Uniform Resource Identifier (URI) set, which includes both Uniform Resource Locator (URL) and Uniform Resource Name (URN). As such, it is also used in the preparation of data of the application/x-www-form-urlencoded media type, as is often used in the submission of HTML form data in HTTP requests.</label>
            </form:form>
        </article>
        <section>
            <h1>Types</h1>
            <ul>
                <li><a href="/base64.htm" >Base64</a></li>
                <li><a href="/html.htm" >HTML</a></li>
                <li> <a href="/url.htm" >URL</a></li>
            </ul>
        </section>
        <footer>
            <p>  	
                Remka |  November 2014
                <br/>
            </p>
        </footer>
    </body>
</html>        